package 软件开发原则.合成复用原则.继承复用;

public class Client {
    public static void main(String[] args) {
        Car car=new RedPetrolCar();
        car.move();
        Car car1=new BlackPetrolCar();
        car1.move();
    }
}
